import request from '@/utils/request'

// 查询物资及服务需求审批列表
export function listOaServiceApproval(query) {
  return request({
    url: '/module/oaServiceApproval/list',
    method: 'get',
    params: query
  })
}

// 查询物资及服务需求审批详细
export function getOaServiceApproval(id) {
  return request({
    url: '/module/oaServiceApproval/' + id,
    method: 'get'
  })
}

// 新增物资及服务需求审批
export function addOaServiceApproval(data) {
  return request({
    url: '/module/oaServiceApproval',
    method: 'post',
    data: data
  })
}

// 修改物资及服务需求审批
export function updateOaServiceApproval(data) {
  return request({
    url: '/module/oaServiceApproval',
    method: 'put',
    data: data
  })
}

// 删除物资及服务需求审批
export function delOaServiceApproval(id) {
  return request({
    url: '/module/oaServiceApproval/' + id,
    method: 'delete'
  })
}
